

#include <iostream>
#include <stdlib.h>

using namespace std;

class Line
{
  public:
    Line()
    {
        cout << this << " constuct!" << endl;
    }
    Line(const Line &line)
    {
        cout << this << " copy constrcut" << endl;
    }
    ~Line()
    {
        cout << this << " deconstruct!" << endl;
    }
};
int main()
{
    Line *l = new Line;
    Line l2 = *l;    

    system("pause");
    return 0;
} /*
0x61ff1f constuct!
0x61ff1e copy constrcut
0x61ff1d constuct!
0x61ff1d deconstruct!
0x61ff1e deconstruct!
0x61ff1f deconstruct!
*/
